{include file=width/top.html}
<div id="header" class="w1000 clearfix">
	<div title="{$site_title}" class="logo"><a href="index.php"><img src="{$site_logo}"></a></div>
    <div class="search" style="float:right;">
        <div class="search-box">
            <form method="GET" action="{url app=search}">
                <div class="border">
                    <div class="select_js">
                        <p>{$lang.search_goods}</p>
                        <div class="ico"></div>
                        <ul>
                            <li ectype="index">{$lang.search_goods}</li>
                            <li ectype="store">{$lang.search_store}</li>
                            <li ectype="groupbuy">{$lang.search_groupbuy}</li>
                        </ul>
                        <input type="hidden" name="act" value="index" />
                    </div>
                    <input type="text" name="keyword" class="search-input" value="{$smarty.get.keyword}"/>
                </div>
                <input type="hidden" name="app" value="search" />
                <input type="submit" name="Submit" value="{$lang.search}" class="search-btn"/>
            </form>
        </div>
        <div class="hot-word">
			{$lang.hot_search}:
            <!--{foreach from=$hot_keywords item=keyword}-->
            <a href="{url app=search&keyword=$keyword}">{$keyword}</a>
            <!--{/foreach}-->
        </div>
    </div>
</div>

<div id="nav">
	<div class="w1000 nav">
    	 <!--{if !$index}-->
         <script type="text/javascript">
		 	$(function(){
				$("#allsort").hover(function(){
					$("#allsort i").addClass("ihover");
					$("#allsort-list").css("display","block");
				},function(){
					$("#allsort i").removeClass("ihover");
					$("#allsort-list").css("display","none");
				});
			});
		 </script>
         	<div id="allsort">
            	<h3>
                	<a target="_blank" href="{url app=category}">{$lang.all_cate}</a>
					<i></i>
                </h3>
                <div class="category" id="allsort-list">
              		 <div class="content">
                  <!-- {foreach from=$gcates item=category name=fe_gcate} -->
                  		<div class="item">
                          <h2><a target="_blank" href="{url app=search&cate_id=$category.id}"><i></i>{$category.value|escape}</a><div class="up"></div></h2>
                          <div class="out">
                              <div class="subcategory">
                                    <!-- {foreach from=$category.children item=child name=fe_children} -->
                                    <dl class="clearfix" {if $smarty.foreach.fe_children.first} style=" border:none;"{/if}>
                                        <dt><a style="border:none;" title="{$child.value|escape}" target="_blank" href="{url app=search&cate_id=$child.id}"><strong>{$child.value|escape}</strong></a></dt>
                                        <dd>
                                       <!-- {foreach from=$child.children item=child2 name=fe_child2} -->
                                       <a target="_blank" {if $smarty.foreach.fe_child2.last} class="nbd" {/if} title="{$child2.value}" href="{url app=search&cate_id=$child2.id}">{$child2.value|escape}</a>
                                       <!--{/foreach}-->
                                           &nbsp;
                                        </dd>
                                    </dl>
                                    <!--{/foreach}-->
                              </div>
                          </div>
                  		</div>
                  <!--{/foreach}-->
                </div>
            	</div>
            </div>
          <!--{else}-->
          <div id="allsort">
            	<h3>
                	<a target="_blank" href="{url app=category}">所有商品分类</a>
                </h3>
          </div>
         <!--{/if}-->
         <ul>
            <li><a class="{if $index}on{else}{/if}" href="index.php" >首页</a></li>
            <!--{foreach from=$navs.middle item=nav}-->
            	<li><a class="{if !$index and $nav.link eq $current_url}on{else}{/if}" href="{$nav.link}"{if $nav.open_new} target="_blank"{/if}>{$nav.title|escape}</a></li>
    		<!--{/foreach}-->
        </ul>
        <div class="myCart">
            <div class="goodsNum">
            	<span class="tTitle">{$lang.cart}: <strong>{$cart_goods_kinds}</strong>{$lang.jian}</span>
            </div>
            <p class="navPay"><a href="{url app=cart}">{$lang.go_to_pay}</a></p>
        </div>
	</div>
</div>